//Factory.h

#include "Factory.h"
#include "Mur.h"
#include "Caisse.h"
#include "Personnage.h"
#include "MaMap.h"
#include "ConstantBlock.h"

ref_ptr<Block> Factory::create(int type ,int x ,int y){
	switch(type){
	case NONE : return NULL;
	case SURFACE_NORMALE : return NULL;
	case SURFACE_OBJECTIF : return NULL;
	case BLOCK_MUR : return new Mur(x,y);
	case BLOCK_CAISSE : return new Caisse(x,y);
	case BLOCK_PERSO : return new Personnage(x,y);
	}
	return NULL;
}